package astnode;
import java.util.ArrayList;
public class FunctionDeclarationNode extends DeclarationNode{
	private ArrayList<ParameterNode> parameters = new ArrayList<ParameterNode>();
	private CompoundStmtNode comspond = null;
	
	public FunctionDeclarationNode(DeclarationNode node) {
		super( node );
	}
	
	public FunctionDeclarationNode( int lineNum ) {
		super(lineNum);
	}
	
	public ArrayList<ParameterNode> getParameterList(){
		return parameters;
	}

	

	public CompoundStmtNode getComspond() {
		return comspond;
	}

	public void setComspond(CompoundStmtNode comspond) {
		this.comspond = comspond;
	}
	
	public void addParameter( ParameterNode param ){
		parameters.add(param);
	}
}
